import ContactImpulse from "./contact-impulse";

export default class ManifoldPoint {
    constructor() {
        this.localPos1 = new Float64Array(3);
        this.localPos2 = new Float64Array(3);
        this.relPos1 = new Float64Array(3);
        this.relPos2 = new Float64Array(3);
        this.pos1 = new Float64Array(3);
        this.pos2 = new Float64Array(3);
        this._depth = 0;
        this._impulse = new ContactImpulse();
        this._warmStarted = false;
        this._disabled = false;
        this._id = -1;
    }

    isEnabled() {
        return !this._disabled;
    }
}